package com.fangshuoit.dataobject;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by 范承波 on 2017/9/23.
 * email：1197691639@qq.com
 * phone：18169015880
 */
@Entity
@Table(name = "product_category")
@DynamicUpdate
@Data//可以替换get/set/toString方法
public class ProductCategory {
    //类目id
    @Id
    @GeneratedValue
    private Integer categoryId;
    //类目名字
    private String categoryName;
    //类目编号
    private Integer categoryType;
    //创建时间
  /*  private Date createTime;
    //更新时间
    private Date updateTime;*/

    public ProductCategory() {
    }

    public ProductCategory(String categoryName, Integer categoryType) {
        this.categoryName = categoryName;
        this.categoryType = categoryType;
    }
}
